package biz.obake.team.touchprotector.features.tasker;

import android.content.ComponentName;
import android.os.Bundle;
import android.view.View;
import biz.obake.team.touchprotector.R;

public class TaskerEditActivity extends c.c.b.a.a.c.a.a {
    /* access modifiers changed from: private */

    /* renamed from: c  reason: collision with root package name */
    public a f1687c = null;

    /* renamed from: d  reason: collision with root package name */
    private View.OnClickListener f1688d = new a();

    class a implements View.OnClickListener {
        a() {
        }

        public void onClick(View view) {
            TaskerEditActivity taskerEditActivity;
            a aVar;
            int id = view.getId();
            if (id != R.id.app_quit) {
                switch (id) {
                    case R.id.lock_lock /*2131296453*/:
                        taskerEditActivity = TaskerEditActivity.this;
                        aVar = new a("lock.lock");
                        break;
                    case R.id.lock_toggle /*2131296454*/:
                        taskerEditActivity = TaskerEditActivity.this;
                        aVar = new a("lock.toggle");
                        break;
                    case R.id.lock_unlock /*2131296455*/:
                        taskerEditActivity = TaskerEditActivity.this;
                        aVar = new a("lock.unlock");
                        break;
                }
            } else {
                taskerEditActivity = TaskerEditActivity.this;
                aVar = new a("app.quit");
            }
            a unused = taskerEditActivity.f1687c = aVar;
            TaskerEditActivity.this.finish();
        }
    }

    public static void h(boolean z) {
        int i = z ? 1 : 2;
        biz.obake.team.android.a a2 = biz.obake.team.android.a.a();
        a2.getPackageManager().setComponentEnabledSetting(new ComponentName(a2, TaskerEditActivity.class), i, 1);
    }

    public String a(Bundle bundle) {
        a aVar = this.f1687c;
        return aVar == null ? "" : aVar.b();
    }

    public Bundle c() {
        a aVar = this.f1687c;
        if (aVar == null) {
            return null;
        }
        return aVar.c();
    }

    public void d(Bundle bundle, String str) {
    }

    public boolean f(Bundle bundle) {
        return false;
    }

    /* access modifiers changed from: protected */
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.features_tasker_edit_activity);
        findViewById(R.id.lock_lock).setOnClickListener(this.f1688d);
        findViewById(R.id.lock_unlock).setOnClickListener(this.f1688d);
        findViewById(R.id.lock_toggle).setOnClickListener(this.f1688d);
        findViewById(R.id.app_quit).setOnClickListener(this.f1688d);
    }
}
